package com.example.easybuy.mappers;

import com.example.easybuy.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface AddressMapper {
    int addAddress(Map<String ,Object> map);
    int updateAddress(Map<String ,Object> map);
    int delAddress(Map<String ,Object> map);
    List<Address> selectAll(Map<String ,Object> map);
    int updateIsDefault(@Param("id")int id);
    Address findAddress(int id);
    int toNoIsDefault();
}
